package com.cunyu.bean;

public class Simcard {
	
	private String cardNo;
	
	private int status;
	
	private String sumflow;
	
	private String useflow;
	
	private String packagename;
	
	private String endtime;
	
	private String statusName;
	
	public Simcard(String cardNo) {
		this.cardNo = cardNo;
		this.statusName = "<未获取>";
		this.sumflow = "<未获取>";
		this.useflow = "<未获取>";
		this.packagename = "<未获取>";
		this.endtime = "<未获取>";
	}

	public int getStatus() {
		return status;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatus(int status) {
		this.status = status;
		switch(status) {
		case 1:
			statusName = "待激活";
			break;
		case 2:
			statusName = "正常";
			break;
		case 3:
			statusName = "单向停机";
			break;
		case 4:
			statusName = "停机";
			break;
		case 5:
			statusName = "预销号";
			break;
		case 6:
			statusName = "销号";
			break;
		case 7:
			statusName = "过户";
			break;
		case 8:
			statusName = "休眠";
			break;
		case 9:
			statusName = "号码不存在";
			break;
		default:
			statusName = "未知状态[" + status + "]";
		}
	}

	@Override
	public String toString() {
		return cardNo + "|" + statusName;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getSumflow() {
		return sumflow;
	}

	public void setSumflow(String sumflow) {
		this.sumflow = sumflow;
	}

	public String getUseflow() {
		return useflow;
	}

	public void setUseflow(String useflow) {
		this.useflow = useflow;
	}

	public String getPackagename() {
		return packagename;
	}

	public void setPackagename(String packagename) {
		this.packagename = packagename;
	}

	public String getEndtime() {
		return endtime;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

}
